///
/// Override the Sub Page_Load_InitPageSettings() in the Page Class to go to specific page.
///
protected override void Page_Load_InitPageSettings(object sender, EventArgs e)
{
// If not IsPostBack Then
if (!(this.IsPostBack))
{
// Set the PageIndex to the value passed via the URL
if (this.Request.QueryString["page"] != null)
{
this.${Table Control}.PageIndex = (int.Parse(this.Request.QueryString["page"])) - 1;
// Call the DataBind() method to refresh the page
this.DataBind();
}
}
// Return MyBase.ModifyRedirectUrl
base.Page_Load_InitPageSettings(sender, e);
}
|